package com.atgouwu.mall.product.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

/**
 * 二级分类vo
 */
@Data
@AllArgsConstructor //lombok全参构造
@NoArgsConstructor //无参构造
public class CatelogTwoVo {
    @ApiModelProperty(value="一级父分类id", example="1")
    private String catalogOneId; //一级父分类id
    private String id; //二级分类id
    private String name; //二级分类名称
    private List<CategoryThreeVo> catalogThreeList; //三级子分类

    /**
     * 三级分类vo
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryThreeVo {
        private String catalogTwoId; //二级父分类id
        private String id; //三级分类id
        private String name; //三级分类名称
    }

}
